package com.atguigu.mapper;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RolePermissionMapper {
    List<Long> findPermissionIdByRoleId(@Param("roleId") Long roleId);

    void deletePermissionByRoleId(@Param("roleId") Long roleId);

    void assignPermission(@Param("roleId") Long roleId,@Param("permissionIds") List<Long> permissionIds);
}
